package com.collect.common.eventbus.message;

import java.util.List;

/**
 * @ Author :hky
 * @ Date  : Created in 13:10 2022-06-16
 * @ Version discord
 * @ Decribtion : eventbus 消息体$
 */
public class EventBusMessage<T>{
    private Integer code;
    private T body;
    private List<T> bodyList;

    public EventBusMessage() {
    }

    public EventBusMessage(Integer code, T body, List<T> bodyList) {
        this.code = code;
        this.body = body;
        this.bodyList = bodyList;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }

    public List<T> getBodyList() {
        return bodyList;
    }

    public void setBodyList(List<T> bodyList) {
        this.bodyList = bodyList;
    }

}
